<%@tag description="put the tag description here" pageEncoding="UTF-8"%>
<%@ include file="/taglibs.jsp" %>

<%@attribute name="name" required="true"%>
<c:set var="_calendarPopup" value="${_calendarPopup + 1}"  scope="request"/>
<c:set var="popupName" value="cal${_calendarPopup}"/>
<s:text name="${name}" formatPattern="short" id="${popupName}"/>                                           
<a href="javascript:${popupName}.popup();"><img src="<%= request.getContextPath()%>/img/cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date"/></a>
<script language="JavaScript">
    var ${popupName} = new calendar2('${popupName}', '<%= request.getContextPath()%>');
    ${popupName}.year_scroll = false;
    ${popupName}.time_comp = false;
</script>
